package org.springd3.d2.dao.impl;

import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springd3.d2.dao.NewsTypeMapper;
import org.springd3.d2.pojo.NewsType;

import java.util.List;

public class NewsTypeMapperImpl2 extends SqlSessionDaoSupport implements NewsTypeMapper {
//    继承了SqlSessionDaoSupport
//    已经提供了SqlSession和SqlSessionFactory


    @Override
    public List<NewsType> getAllNewsType() {
        return this.getSqlSession().getMapper(NewsTypeMapper.class).getAllNewsType();
    }
}
